<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>先花花</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<link href="css/home.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/css.css" rel="stylesheet" type="text/css" media="all" />

</head>

<body style="background:#fff;">

<!--top-->

<div class="top">
    <div class="box">
        <a href="javascript:history.back(-1)" class="return"><img src="images/return.png"></a>
        充值
        <a href="recharge1.html" class="po_rec"></a>
    </div>
</div>
<div id='box' style="margin-top:60px;">
</div>

<span>
<div class="login_lo" style="margin-top:66px;">

</div>
</span>

</body>
</html>
<script type="text/javascript" src="script/jquery.js"></script>
<script type="text/javascript" src="script/jquery.md5.js"></script>
<script type="text/javascript" src="script/jquery.cookie.js"></script>
<script type="text/javascript" src="script/common.js"></script>
<script type="text/javascript">
    $(function(){
              //获取到银行卡列表
             $.ajax({
              url:commonUrl+"/Bankcard/getCard",
              data:{appid:appid,appkey:appkey,uid:uid},
              type:"get",
              dataType:"jsonp",
              jsonp:"callback",
                    success:function(res){
                      var str='';
                        if(res.status==200){
                            
                            $.each(res.data,function(k,v){
                            str+='<div class="bank box"  style="margin-top:20px; overflow:hidden;" name="bank">';
                            str+='<p>'+v.bankName+'</p>';
                            str+='<span>'+v.cardNumber+'</span>';
                            str+='<button style="float:right;" class="bankdel" id='+v.id+'>解绑</button>';
                            str+='</div>';
                        });
                        }else{
                            str+='<div class="bank box" style="margin-top:60px;">';
                            str+='<p>您当前没有绑定银行卡</p>';
                            str+='<span></span>';
                            str+='</div>';
                        }
                        $("#box").html(str);
                    }
                });
              
             
              
})
</script>
